gdk: Get rid of paint contexts
authorBenjamin Otte <otte@redhat.com>
Tue, 6 Jul 2021 02:50:01 +0000 (04:50 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:27:31 +0000 (16:27 +0200)
commit505436340b6a20b767f53b3dc49ecf9a647c75f0
treeadc722761c220698463d4be728bbabf478a3cf68
parenta27434a8a7d9eab0731c6f24bc6ec9761ff11ede
gdk: Get rid of paint contexts

... or more exactly: Only use paint contexts with
gdk_cairo_draw_from_gl().

Instead of paint contexts being the only contexts who call swapBuffer(),
any context can be used for this, when it's used with
begin_frame()/end_frame().

This removes 2 features:

1. We no longer need a big sharing hierarchy. All contexts are now
   shared with gdk_display_get_gl_context().
2. There is no longer a difference between attached and non-attached
   contexts. All contexts work the same way.
13 files changed:
gdk/gdkglcontext.c
gdk/gdksurface.c
gdk/gdksurfaceprivate.h
gdk/macos/gdkmacosglcontext.c
gdk/wayland/gdkglcontext-wayland.c
gdk/wayland/gdkglcontext-wayland.h
gdk/win32/gdkglcontext-win32.c
gdk/win32/gdkglcontext-win32.h
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkglcontext-egl.c
gdk/x11/gdkglcontext-glx.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h